package com.neugh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 用户Id
     */
    @TableId(value = "userId", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 用户账号
     */
    private String userCode;

    /**
     * 用户头像
     */
    private String userHead;

    /**
     * 用户密码
     */
    private String userPassword;

    /**
     * 手机号
     */
    private String userPhone;

    /**
     * 性别
     */
    private String userSex;

    /**
     * 出生年月
     */
    private String userBirthday;

    /**
     * 兴趣爱好
     */
    private String userLike;

    /**
     * 是否已认证业主 0/1
     */
    private Integer isOwner;

    /**
     * 余额
     */
    private Double userBalance;

    /**
     * 地址外键
     */
    private Integer addressId;


    public static final String USERID = "userId";

    public static final String USERNAME = "userName";

    public static final String USERCODE = "userCode";

    public static final String USERHEAD = "userHead";

    public static final String USERPASSWORD = "userPassword";

    public static final String USERPHONE = "userPhone";

    public static final String USERSEX = "userSex";

    public static final String USERBIRTHDAY = "userBirthday";

    public static final String USERLIKE = "userLike";

    public static final String ISOWNER = "isOwner";

    public static final String USERBALANCE = "userBalance";

    public static final String ADDRESSID = "addressId";

}
